import type { HttpResponse } from "../request";
import type { UserInfo } from "../user";

export interface MessageListResult extends HttpResponse {
  msgs: MessageItem[];
  more: boolean;
  newMsgCount: number;
}

export interface MessageItem {
  user: UserInfo;
  toUser: UserInfo;
  fromUser: UserInfo;
  noticeAccountFlag: boolean;
  noticeAccount: null;
  lastMsg: string;
  lastMsgTime: number;
  newMsgCount: number;
  lastMsgUserId: null;
  msgSenderType: number;
  lastMsgId: number;
}
